This repository has been archived by the owner on May 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite crate using the native-tls crate
The purpose of this rewrite is to reuse all of awesome logic in the native-tls crate rather than rewriting it. The native-tls crate already naturally supports async I/O everywhere so let's just take advantage of it! As a result, this crate is now stripped of all #[cfg] code essentially and now just provides two extension traits for `TlsConnector` and `TlsAcceptor`. The extension traits provide a `connect_async` and `accept_async` function, respectively, which handles retry logic with mid-handshake streams automatically. Currently this rewrites drops two current features of this crate: forcing usage of OpenSSL and a rustls backend. I hope to reenable both of these features through support in the native-tls crate shortly, however.
- Loading branch information
1 parent
3d49e52
commit b121025
Showing
12 changed files
with
352 additions
and
1,490 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,3 @@ build: false | |
test_script: | ||
- cargo build | ||
- cargo test | ||
- cargo test --features force-rustls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.