I'd like to upgrade the openssl dependency to the latest, to allow rust-websocket to be used alongside other crates which also depend on openssl. The upgrade was mostly straightforward, but I did hit one snag: SslStream no longer implements try_clone, which makes implementing it for WebSocketStream problematic. Apparently rustls' ClientSession also doesn't provide a try_clone.
This PR breaks secure websockets; I'm not suggesting you merge it as-is - just asking for suggestions.
I'd like to upgrade the openssl dependency to the latest, to allow rust-websocket to be used alongside other crates which also depend on openssl. The upgrade was mostly straightforward, but I did hit one snag:
SslStream
no longer implementstry_clone
, which makes implementing it forWebSocketStream
problematic. Apparently rustls'ClientSession
also doesn't provide atry_clone
.This PR breaks secure websockets; I'm not suggesting you merge it as-is - just asking for suggestions.