Disable npn tests on < 1.0.2
s_client doesn't seem to support the required flag before then.
This commit is contained in:
parent
140ef1b988
commit
5b29fc9d69
|
|
@ -605,6 +605,7 @@ fn test_connect_with_alpn_successful_multiple_matching() {
|
||||||
/// Tests that when both the client as well as the server use NPN and their
|
/// Tests that when both the client as well as the server use NPN and their
|
||||||
/// lists of supported protocols have an overlap, the correct protocol is chosen.
|
/// lists of supported protocols have an overlap, the correct protocol is chosen.
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(feature = "openssl-102")]
|
||||||
fn test_connect_with_npn_successful_multiple_matching() {
|
fn test_connect_with_npn_successful_multiple_matching() {
|
||||||
let (_s, stream) = Server::new_alpn();
|
let (_s, stream) = Server::new_alpn();
|
||||||
let mut ctx = SslContext::new(Tls).unwrap();
|
let mut ctx = SslContext::new(Tls).unwrap();
|
||||||
|
|
@ -651,6 +652,7 @@ fn test_connect_with_alpn_successful_single_match() {
|
||||||
/// lists of supported protocols have an overlap -- with only ONE protocol
|
/// lists of supported protocols have an overlap -- with only ONE protocol
|
||||||
/// being valid for both.
|
/// being valid for both.
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(feature = "openssl-102")]
|
||||||
fn test_connect_with_npn_successful_single_match() {
|
fn test_connect_with_npn_successful_single_match() {
|
||||||
let (_s, stream) = Server::new_alpn();
|
let (_s, stream) = Server::new_alpn();
|
||||||
let mut ctx = SslContext::new(Tls).unwrap();
|
let mut ctx = SslContext::new(Tls).unwrap();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue