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

TLS 1.3 version support #278

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

TLS 1.3 version support #278

wants to merge 4 commits into from

Conversation

amousset
Copy link

@amousset amousset commented Aug 16, 2023

Refs: #159, #235, #140

It looks like schannel and openssl > 1.1.1 (and compatible libressl) are the only compatible option for now:

Relying on build-time check on openssl version makes it hard to use for downstream crates though. I don't see anything better than defining TLS 1.3 everywhere and enforcing a runtime error at connection instead. Switched to run time errors.

@amousset amousset force-pushed the tls13 branch 2 times, most recently from c68a324 to 979e3da Compare August 16, 2023 21:13
@amousset amousset marked this pull request as ready for review August 16, 2023 21:22
///
/// Requires OpenSSL 1.1.1 or LibreSSL 3.4.0 or newer.
#[cfg(have_tls13_version)]
Tlsv13,
Copy link
Owner

Choose a reason for hiding this comment

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

I'd prefer to expose a uniform interface rather than having this be conditionally defined based on the backend version.

Copy link
Author

Choose a reason for hiding this comment

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

I switched to runtime errors when unsupported.

@@ -24,7 +24,7 @@ libc = "0.2"
tempfile = "3.1.0"

[target.'cfg(target_os = "windows")'.dependencies]
schannel = "0.1.17"
schannel = "0.1.20"
Copy link
Author

Choose a reason for hiding this comment

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

required as TLSv1.3 came with the switch from winapi to windows-rs in 0.1.20

@amousset
Copy link
Author

@sfackler The comments were addressed, does the current PR look acceptable?

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.

3 participants