File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ impl RawClient<ElectrumSslStream> {
408408
409409 if rustls:: crypto:: CryptoProvider :: get_default ( ) . is_none ( ) {
410410 // We install a crypto provider depending on the set feature.
411- #[ cfg( feature = "use-rustls" ) ]
411+ #[ cfg( all ( feature = "use-rustls" , not ( feature = "use-rustls-ring" ) ) ) ]
412412 rustls:: crypto:: CryptoProvider :: install_default (
413413 rustls:: crypto:: aws_lc_rs:: default_provider ( ) ,
414414 )
@@ -449,7 +449,7 @@ impl RawClient<ElectrumSslStream> {
449449 builder
450450 . dangerous ( )
451451 . with_custom_certificate_verifier ( std:: sync:: Arc :: new (
452- #[ cfg( feature = "use-rustls" ) ]
452+ #[ cfg( all ( feature = "use-rustls" , not ( feature = "use-rustls-ring" ) ) ) ]
453453 danger:: NoCertificateVerification :: new ( rustls:: crypto:: aws_lc_rs:: default_provider ( ) ) ,
454454 #[ cfg( feature = "use-rustls-ring" ) ]
455455 danger:: NoCertificateVerification :: new ( rustls:: crypto:: ring:: default_provider ( ) ) ,
You can’t perform that action at this time.
0 commit comments