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

x509 verify params + safety fixes #297

Merged
merged 3 commits into from
Nov 28, 2024

Conversation

kornelski
Copy link
Collaborator

I've copied rust-openssl APIs that are needed to make c2pa.org SDK compatible with boring (jira IMAGES-1371).

The openssl crate had also a couple of important safety fixes — X509VerifyParam::set_host with 0-len host was unsafe, and X509StoreRef::objects references may get invalidated by other accesses of the shared cache.

X509StoreRef::objects is unfixable, so I've marked it as unsafe and deprecated, which is technically semver-breaking, but I think the risk of use-after-free in a safe API could warrant releasing it in 4.x despite breakage.

@kornelski kornelski force-pushed the verify-param branch 2 times, most recently from c8641d8 to 6a0cfb8 Compare November 27, 2024 02:16
boring/src/x509/verify.rs Outdated Show resolved Hide resolved
@kornelski
Copy link
Collaborator Author

rust-version = "1.70" stops Clippy from demanding c"lit" syntax that has been added more recently.

@rushilmehra rushilmehra merged commit 57fbe0f into cloudflare:master Nov 28, 2024
23 checks passed
@kornelski kornelski deleted the verify-param branch November 29, 2024 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants