-
-
Notifications
You must be signed in to change notification settings - Fork 202
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -322,6 +322,11 @@ pub enum Protocol { | |
Tlsv11, | ||
/// The TLS 1.2 protocol. | ||
Tlsv12, | ||
/// The TLS 1.3 protocol. | ||
/// | ||
/// Only works on Windows, or with openssl >= 1.1.1 or libressl >= 3.4.0. | ||
/// It will fail at runtime when used in other situations. | ||
Tlsv13, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. I switched to runtime errors when unsupported. |
||
} | ||
|
||
/// A builder for `TlsConnector`s. | ||
|
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