@@ -23,7 +23,7 @@ use bitcoin::{Script, Txid};
23
23
use openssl:: ssl:: { SslConnector , SslMethod , SslStream , SslVerifyMode } ;
24
24
25
25
#[ cfg( all(
26
- any( feature = "default" , feature = "use-rustls" ) ,
26
+ any( feature = "default" , feature = "use-rustls" , feature = "use-rustls-ring" ) ,
27
27
not( feature = "use-openssl" )
28
28
) ) ]
29
29
use rustls:: {
@@ -286,7 +286,7 @@ impl RawClient<ElectrumSslStream> {
286
286
}
287
287
288
288
#[ cfg( all(
289
- any( feature = "default" , feature = "use-rustls" ) ,
289
+ any( feature = "default" , feature = "use-rustls" , feature = "use-rustls-ring" ) ,
290
290
not( feature = "use-openssl" )
291
291
) ) ]
292
292
mod danger {
@@ -336,13 +336,13 @@ mod danger {
336
336
}
337
337
338
338
#[ cfg( all(
339
- any( feature = "default" , feature = "use-rustls" ) ,
339
+ any( feature = "default" , feature = "use-rustls" , feature = "use-rustls-ring" ) ,
340
340
not( feature = "use-openssl" )
341
341
) ) ]
342
342
/// Transport type used to establish a Rustls TLS encrypted/authenticated connection with the server
343
343
pub type ElectrumSslStream = StreamOwned < ClientConnection , TcpStream > ;
344
344
#[ cfg( all(
345
- any( feature = "default" , feature = "use-rustls" ) ,
345
+ any( feature = "default" , feature = "use-rustls" , feature = "use-rustls-ring" ) ,
346
346
not( feature = "use-openssl" )
347
347
) ) ]
348
348
impl RawClient < ElectrumSslStream > {
@@ -451,7 +451,7 @@ impl RawClient<ElectrumProxyStream> {
451
451
Ok ( stream. into ( ) )
452
452
}
453
453
454
- #[ cfg( any( feature = "use-openssl" , feature = "use-rustls" ) ) ]
454
+ #[ cfg( any( feature = "use-openssl" , feature = "use-rustls" , feature = "use-rustls-ring" ) ) ]
455
455
/// Creates a new TLS client that connects to `target_addr` using `proxy_addr` as a socks proxy
456
456
/// server. The DNS resolution of `target_addr`, if required, is done through the proxy. This
457
457
/// allows to specify, for instance, `.onion` addresses.
0 commit comments