Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src, tests: add max_chain_depth to validation API #9844

Merged
merged 4 commits into from
Nov 9, 2023

Conversation

woodruffw
Copy link
Contributor

This adds max_chain_depth to the Python API, and plumbs it through to the equivalent (previously invariant) setting on the Rust API. It's needed to get the last bit of coverage on #8873, since we'd otherwise be unable to exercise the corresponding Limbo testcases from Python.

Breakout from #8873.

src/rust/src/x509/verify.rs Outdated Show resolved Hide resolved
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Self {
_ops: ops,
max_chain_depth: 8,
max_chain_depth: max_chain_depth.unwrap_or(8),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

8 should be a constant with an explanation of why

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alex alex enabled auto-merge (squash) November 9, 2023 20:28
@alex alex merged commit 7d451db into pyca:main Nov 9, 2023
56 checks passed
@woodruffw woodruffw deleted the tob-max-chain-depth branch November 9, 2023 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants