-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
base: master
Are you sure you want to change the base?
Conversation
c68a324
to
979e3da
Compare
/// | ||
/// Requires OpenSSL 1.1.1 or LibreSSL 3.4.0 or newer. | ||
#[cfg(have_tls13_version)] | ||
Tlsv13, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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
@sfackler The comments were addressed, does the current PR look acceptable? |
Refs: #159, #235, #140
It looks like schannel and openssl > 1.1.1 (and compatible libressl) are the only compatible option for now:
security-framework
does not (and will not) handle TLS 1.3 even if the constant exists.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.