Commit 9784356 1 parent 8ab3c3f commit 9784356 Copy full SHA for 9784356
File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -599,7 +599,7 @@ impl AlpnError {
599
599
/// Terminate the handshake with a fatal alert.
600
600
///
601
601
/// Requires OpenSSL 1.1.0 or newer.
602
- #[ cfg( any ( ossl110) ) ]
602
+ #[ cfg( ossl110) ]
603
603
pub const ALERT_FATAL : AlpnError = AlpnError ( ffi:: SSL_TLSEXT_ERR_ALERT_FATAL ) ;
604
604
605
605
/// Do not select a protocol, but continue the handshake.
@@ -2413,7 +2413,7 @@ impl SslRef {
2413
2413
///
2414
2414
/// Requires OpenSSL 1.0.1 or 1.0.2.
2415
2415
#[ corresponds( SSL_set_tmp_ecdh_callback ) ]
2416
- #[ cfg( any ( all( ossl101, not( ossl110) ) ) ) ]
2416
+ #[ cfg( all( ossl101, not( ossl110) ) ) ]
2417
2417
#[ deprecated( note = "this function leaks memory and does not exist on newer OpenSSL versions" ) ]
2418
2418
pub fn set_tmp_ecdh_callback < F > ( & mut self , callback : F )
2419
2419
where
Original file line number Diff line number Diff line change @@ -467,7 +467,7 @@ fn test_alpn_server_advertise_multiple() {
467
467
}
468
468
469
469
#[ test]
470
- #[ cfg( any ( ossl110) ) ]
470
+ #[ cfg( ossl110) ]
471
471
fn test_alpn_server_select_none_fatal ( ) {
472
472
let mut server = Server :: builder ( ) ;
473
473
server. ctx ( ) . set_alpn_select_callback ( |_, client| {
Original file line number Diff line number Diff line change @@ -1478,7 +1478,7 @@ mod tests {
1478
1478
}
1479
1479
1480
1480
#[ test]
1481
- #[ cfg( any ( ossl110) ) ]
1481
+ #[ cfg( ossl110) ]
1482
1482
fn test_chacha20 ( ) {
1483
1483
let key = "0000000000000000000000000000000000000000000000000000000000000000" ;
1484
1484
let iv = "00000000000000000000000000000000" ;
@@ -1493,7 +1493,7 @@ mod tests {
1493
1493
}
1494
1494
1495
1495
#[ test]
1496
- #[ cfg( any ( ossl110) ) ]
1496
+ #[ cfg( ossl110) ]
1497
1497
fn test_chacha20_poly1305 ( ) {
1498
1498
let key = "808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9f" ;
1499
1499
let iv = "070000004041424344454647" ;
You can’t perform that action at this time.
0 commit comments