We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ec56fe commit 3c0e105Copy full SHA for 3c0e105
src/net.rs
@@ -657,10 +657,16 @@ mod openssl {
657
// cipher list taken from curl:
658
// https://github.com/curl/curl/blob/5bf5f6ebfcede78ef7c2b16daa41c4b7ba266087/lib/vtls/openssl.h#L120
659
ctx.set_cipher_list("ALL!EXPORT!EXPORT40!EXPORT56!aNULL!LOW!RC4@STRENGTH").unwrap();
660
- OpensslClient(ctx)
+ OpensslClient::new(ctx)
661
}
662
663
664
+ impl OpensslClient {
665
+ /// Creates a new OpensslClient with a custom SslContext
666
+ pub fn new(ctx: SslContext) -> OpensslClient {
667
+ OpensslClient(ctx)
668
+ }
669
670
671
impl<T: NetworkStream + Send + Clone> super::SslClient<T> for OpensslClient {
672
type Stream = SslStream<T>;
0 commit comments