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

server: specific err for config w/o cert resolver #472

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

cpu
Copy link
Member

@cpu cpu commented Oct 4, 2024

When we made the server config builder use an out param for the built config it allowed us to return an error when building a config without a cert resolver. At the time we used RUSTLS_RESULT_GENERAL, but this offers no significant hint at the root cause. This commit introduces a new RUSTLS_RESULT_NO_CERT_RESOLVER error and updates the impl and unit test to use it.

Resolves #217

When we made the server config builder use an out param for the built
config it allowed us to return an error when building a config without
a cert resolver. At the time we used `RUSTLS_RESULT_GENERAL`, but this
offers no significant hint at the root cause. This commit introduces
a new `RUSTLS_RESULT_NO_CERT_RESOLVER` error and updates the impl and
unit test to use it.
@cpu cpu self-assigned this Oct 4, 2024
@cpu
Copy link
Member Author

cpu commented Oct 4, 2024

rustls-ffi / Clippy nightly (optional) (pull_request) Failing after 53s

I'll fix these findings separately.

@cpu cpu merged commit 1e9d925 into rustls:main Oct 4, 2024
37 of 38 checks passed
@cpu cpu deleted the cpu-builder-no-resolver-err branch October 4, 2024 15:36
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.

Improve handling for "no roots in server config"
2 participants