aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/ssl/tests
diff options
context:
space:
mode:
authorMarc-Antoine Perennou <[email protected]>2017-09-17 19:46:05 +0200
committerMarc-Antoine Perennou <[email protected]>2017-09-17 19:46:05 +0200
commit50918303790805d75521ceeabe168e87eebbbd0f (patch)
treea9942247859a1d61645b687fac67b7ff46752afa /openssl/src/ssl/tests
parentopensslè-sys: adjust some constants to libressl 2.6.1 (diff)
downloadrust-openssl-50918303790805d75521ceeabe168e87eebbbd0f.tar.xz
rust-openssl-50918303790805d75521ceeabe168e87eebbbd0f.zip
openssl: libressl 2.6.1 dropped suuport for npn
Signed-off-by: Marc-Antoine Perennou <[email protected]>
Diffstat (limited to 'openssl/src/ssl/tests')
-rw-r--r--openssl/src/ssl/tests/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/openssl/src/ssl/tests/mod.rs b/openssl/src/ssl/tests/mod.rs
index cfad9cca..b23de763 100644
--- a/openssl/src/ssl/tests/mod.rs
+++ b/openssl/src/ssl/tests/mod.rs
@@ -503,6 +503,7 @@ fn test_connect_with_unilateral_alpn() {
/// Tests that connecting with the client using NPN, but the server not does not
/// break the existing connection behavior.
#[test]
+#[cfg(not(libressl261))]
fn test_connect_with_unilateral_npn() {
let (_s, stream) = Server::new();
let mut ctx = SslContext::builder(SslMethod::tls()).unwrap();
@@ -615,6 +616,7 @@ fn test_connect_with_npn_successful_single_match() {
/// Tests that when the `SslStream` is created as a server stream, the protocols
/// are correctly advertised to the client.
#[test]
+#[cfg(not(libressl261))]
fn test_npn_server_advertise_multiple() {
let listener = TcpListener::bind("127.0.0.1:0").unwrap();
let localhost = listener.local_addr().unwrap();