-
-
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
Convert from SslConnector to TlsConnector #196
Comments
This crate does not publicly expose the backend libraries so that they can be upgraded without a breaking change. This crate is specifically designed to be a "least common denominator", not an general interface on top of the backend libraries. |
Would you be open to adding this behind a feature guard? I understand the intent is to isolate underlying TLS library but, |
Adding a Cargo feature does not change the fact that exposing the underlying libraries would make it a breaking change to upgrade them. This crate is not intended to be the single canonical TLS library that everything uses. |
It would be useful to add the ability to construct a
native_tls::TlsConnector
fromopenssl:ssl::SslConnector
using:Here is an example scenario - hyper-proxy provides the ability to set the tunneling
native_tls::TlsConnector
. However, when employing custom OpenSSL engines to offload crypto operations during TLS, the openssl crate is the only convenient path to achieve such an implementation.It would be cleaner to add support for the
openssl::ssl::SslConnector -> native_tls::TlsConnector
conversion, which would allow hyper-proxy to continue using native_tls::TlsConnector (and tokio-native-tls stream) for TLS handshake, instead of adding a new hyper-proxy feature foropenssl::ssl::SslConnector
(andtokio_openssl::SslStream
) support.The text was updated successfully, but these errors were encountered: