sfackler / rust-native-tls

Apache License 2.0
471 stars 195 forks source link

Support converting openssl::ssl::SslConnection to native_tls::TlsConnection #197

Closed ryankurte closed 3 years ago

ryankurte commented 3 years ago

I'm not sure if y'all are interested in this as an addition, but, it's got me out of a dependency cycle with openssl/native_ssl.

This lets one to create a native_tls::TlsConnection directly from an existing openssl::tls::TlsConnection to allow low-level configuration of options not exposed by native-tls when using openssl. This is specifically useful where intermediate crates expect a native-tls context that cannot otherwise be created.

sfackler commented 3 years ago

196