@@ -23,7 +23,11 @@ use bitcoin::{Script, Txid};
2323use openssl:: ssl:: { SslConnector , SslMethod , SslStream , SslVerifyMode } ;
2424
2525#[ cfg( all(
26- any( feature = "default" , feature = "use-rustls" ) ,
26+ any(
27+ feature = "default" ,
28+ feature = "use-rustls" ,
29+ feature = "use-rustls-ring"
30+ ) ,
2731 not( feature = "use-openssl" )
2832) ) ]
2933use rustls:: {
@@ -286,7 +290,11 @@ impl RawClient<ElectrumSslStream> {
286290}
287291
288292#[ cfg( all(
289- any( feature = "default" , feature = "use-rustls" ) ,
293+ any(
294+ feature = "default" ,
295+ feature = "use-rustls" ,
296+ feature = "use-rustls-ring"
297+ ) ,
290298 not( feature = "use-openssl" )
291299) ) ]
292300mod danger {
@@ -336,13 +344,21 @@ mod danger {
336344}
337345
338346#[ cfg( all(
339- any( feature = "default" , feature = "use-rustls" ) ,
347+ any(
348+ feature = "default" ,
349+ feature = "use-rustls" ,
350+ feature = "use-rustls-ring"
351+ ) ,
340352 not( feature = "use-openssl" )
341353) ) ]
342354/// Transport type used to establish a Rustls TLS encrypted/authenticated connection with the server
343355pub type ElectrumSslStream = StreamOwned < ClientConnection , TcpStream > ;
344356#[ cfg( all(
345- any( feature = "default" , feature = "use-rustls" ) ,
357+ any(
358+ feature = "default" ,
359+ feature = "use-rustls" ,
360+ feature = "use-rustls-ring"
361+ ) ,
346362 not( feature = "use-openssl" )
347363) ) ]
348364impl RawClient < ElectrumSslStream > {
@@ -451,7 +467,11 @@ impl RawClient<ElectrumProxyStream> {
451467 Ok ( stream. into ( ) )
452468 }
453469
454- #[ cfg( any( feature = "use-openssl" , feature = "use-rustls" ) ) ]
470+ #[ cfg( any(
471+ feature = "use-openssl" ,
472+ feature = "use-rustls" ,
473+ feature = "use-rustls-ring"
474+ ) ) ]
455475 /// Creates a new TLS client that connects to `target_addr` using `proxy_addr` as a socks proxy
456476 /// server. The DNS resolution of `target_addr`, if required, is done through the proxy. This
457477 /// allows to specify, for instance, `.onion` addresses.
0 commit comments