Skip to content

Commit

Permalink
Support 128-bit OID arcs (#11820)
Browse files Browse the repository at this point in the history
* Support 128-bit OID arcs

* Update Cargo.lock to reflect updated rust-asn1 dependency
  • Loading branch information
robby-cornelissen authored Oct 24, 2024
1 parent 2dd3d0a commit 7fa390c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ rust-version.workspace = true
once_cell = "1"
cfg-if = "1"
pyo3 = { version = "0.22.5", features = ["abi3"] }
asn1 = { version = "0.17.0", default-features = false }
asn1 = { version = "0.18.0", default-features = false }
cryptography-cffi = { path = "cryptography-cffi" }
cryptography-keepalive = { path = "cryptography-keepalive" }
cryptography-key-parsing = { path = "cryptography-key-parsing" }
Expand Down
2 changes: 1 addition & 1 deletion src/rust/cryptography-key-parsing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ publish.workspace = true
rust-version.workspace = true

[dependencies]
asn1 = { version = "0.17.0", default-features = false }
asn1 = { version = "0.18.0", default-features = false }
cfg-if = "1"
openssl = "0.10.68"
openssl-sys = "0.9.104"
Expand Down
2 changes: 1 addition & 1 deletion src/rust/cryptography-x509-verification/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ publish.workspace = true
rust-version.workspace = true

[dependencies]
asn1 = { version = "0.17.0", default-features = false }
asn1 = { version = "0.18.0", default-features = false }
cryptography-x509 = { path = "../cryptography-x509" }
cryptography-key-parsing = { path = "../cryptography-key-parsing" }
once_cell = "1"
Expand Down
2 changes: 1 addition & 1 deletion src/rust/cryptography-x509/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ publish = false
rust-version = "1.65.0"

[dependencies]
asn1 = { version = "0.17.0", default-features = false }
asn1 = { version = "0.18.0", default-features = false }
3 changes: 2 additions & 1 deletion tests/x509/test_x509.py
Original file line number Diff line number Diff line change
Expand Up @@ -6056,10 +6056,11 @@ def test_valid(self):
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:
Expand Down

0 comments on commit 7fa390c

Please sign in to comment.