@@ -27,7 +27,7 @@ use std::{
2727
2828// NOTE: BoringSSL tests are disabled on macOS to avoid symbol collisions with
2929// OpenSSL; see https://github.com/aws/s2n-tls/pull/5659 for details.
30- #[ cfg( not( target_os = "macos" ) ) ]
30+ #[ cfg( all ( feature = "boringssl" , not( target_os = "macos" ) ) ) ]
3131use boring:: ssl:: SslVersion ;
3232use rustls:: ClientConfig ;
3333
@@ -50,7 +50,7 @@ use tls_harness::{
5050 PemType , SigType , TlsConnPair , TlsConnection ,
5151} ;
5252
53- #[ cfg( not( target_os = "macos" ) ) ]
53+ #[ cfg( all ( feature = "boringssl" , not( target_os = "macos" ) ) ) ]
5454use tls_harness:: cohort:: { BoringSslConfig , BoringSslConnection } ;
5555
5656const APP_DATA_SIZE : usize = 100_000 ;
@@ -217,7 +217,7 @@ fn rustls_mtls_server(
217217 server. into ( )
218218}
219219
220- #[ cfg( not( target_os = "macos" ) ) ]
220+ #[ cfg( all ( feature = "boringssl" , not( target_os = "macos" ) ) ) ]
221221fn boringssl_mtls_client ( sig_type : SigType , version : SslVersion ) -> BoringSslConfig {
222222 use tls_harness:: harness:: { Mode , TlsConfigBuilder } ;
223223
@@ -248,7 +248,7 @@ fn boringssl_mtls_client(sig_type: SigType, version: SslVersion) -> BoringSslCon
248248 }
249249}
250250
251- #[ cfg( not( target_os = "macos" ) ) ]
251+ #[ cfg( all ( feature = "boringssl" , not( target_os = "macos" ) ) ) ]
252252fn boringssl_mtls_server ( sig_type : SigType , version : SslVersion ) -> BoringSslConfig {
253253 use tls_harness:: harness:: { Mode , TlsConfigBuilder } ;
254254
@@ -335,7 +335,7 @@ fn rustls_client_basic() {
335335}
336336
337337// s2n client, boringssl server
338- #[ cfg( not( target_os = "macos" ) ) ]
338+ #[ cfg( all ( feature = "boringssl" , not( target_os = "macos" ) ) ) ]
339339#[ test]
340340fn boringssl_server_basic ( ) {
341341 // TLS 1.2
@@ -361,7 +361,7 @@ fn boringssl_server_basic() {
361361}
362362
363363// boringssl client, s2n server
364- #[ cfg( not( target_os = "macos" ) ) ]
364+ #[ cfg( all ( feature = "boringssl" , not( target_os = "macos" ) ) ) ]
365365#[ test]
366366fn boringssl_client_basic ( ) {
367367 // TLS 1.2
@@ -469,7 +469,7 @@ fn rustls_client_sync_callback() {
469469}
470470
471471// s2n client with sync callback, boringssl server
472- #[ cfg( not( target_os = "macos" ) ) ]
472+ #[ cfg( all ( feature = "boringssl" , not( target_os = "macos" ) ) ) ]
473473#[ test]
474474fn boringssl_server_sync_callback ( ) {
475475 // TLS 1.2
@@ -501,7 +501,7 @@ fn boringssl_server_sync_callback() {
501501}
502502
503503// boringssl client, s2n server with sync callback
504- #[ cfg( not( target_os = "macos" ) ) ]
504+ #[ cfg( all ( feature = "boringssl" , not( target_os = "macos" ) ) ) ]
505505#[ test]
506506fn boringssl_client_sync_callback ( ) {
507507 // TLS 1.2
@@ -669,7 +669,7 @@ fn rustls_client_async_callback() {
669669}
670670
671671// s2n client with async callback, boringssl server
672- #[ cfg( not( target_os = "macos" ) ) ]
672+ #[ cfg( all ( feature = "boringssl" , not( target_os = "macos" ) ) ) ]
673673#[ test]
674674fn boringssl_server_async_callback ( ) {
675675 // TLS 1.2
@@ -703,7 +703,7 @@ fn boringssl_server_async_callback() {
703703}
704704
705705// boringssl client, s2n server with async callback
706- #[ cfg( not( target_os = "macos" ) ) ]
706+ #[ cfg( all ( feature = "boringssl" , not( target_os = "macos" ) ) ) ]
707707#[ test]
708708fn boringssl_client_async_callback ( ) {
709709 // TLS 1.2
0 commit comments