@@ -23,7 +23,11 @@ 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(
27
+ feature = "default" ,
28
+ feature = "use-rustls" ,
29
+ feature = "use-rustls-ring"
30
+ ) ,
27
31
not( feature = "use-openssl" )
28
32
) ) ]
29
33
use rustls:: {
@@ -286,7 +290,11 @@ impl RawClient<ElectrumSslStream> {
286
290
}
287
291
288
292
#[ cfg( all(
289
- any( feature = "default" , feature = "use-rustls" ) ,
293
+ any(
294
+ feature = "default" ,
295
+ feature = "use-rustls" ,
296
+ feature = "use-rustls-ring"
297
+ ) ,
290
298
not( feature = "use-openssl" )
291
299
) ) ]
292
300
mod danger {
@@ -336,13 +344,21 @@ mod danger {
336
344
}
337
345
338
346
#[ cfg( all(
339
- any( feature = "default" , feature = "use-rustls" ) ,
347
+ any(
348
+ feature = "default" ,
349
+ feature = "use-rustls" ,
350
+ feature = "use-rustls-ring"
351
+ ) ,
340
352
not( feature = "use-openssl" )
341
353
) ) ]
342
354
/// Transport type used to establish a Rustls TLS encrypted/authenticated connection with the server
343
355
pub type ElectrumSslStream = StreamOwned < ClientConnection , TcpStream > ;
344
356
#[ cfg( all(
345
- any( feature = "default" , feature = "use-rustls" ) ,
357
+ any(
358
+ feature = "default" ,
359
+ feature = "use-rustls" ,
360
+ feature = "use-rustls-ring"
361
+ ) ,
346
362
not( feature = "use-openssl" )
347
363
) ) ]
348
364
impl RawClient < ElectrumSslStream > {
@@ -451,7 +467,11 @@ impl RawClient<ElectrumProxyStream> {
451
467
Ok ( stream. into ( ) )
452
468
}
453
469
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
+ ) ) ]
455
475
/// Creates a new TLS client that connects to `target_addr` using `proxy_addr` as a socks proxy
456
476
/// server. The DNS resolution of `target_addr`, if required, is done through the proxy. This
457
477
/// allows to specify, for instance, `.onion` addresses.
0 commit comments