Disable TLSv1.3 for psk_ciphers test

This commit is contained in:
Benjamin Cheng 2018-06-17 17:00:22 -04:00
parent 88c61d252f
commit bf86580bec
No known key found for this signature in database
GPG Key ID: 4FE22E7528E97BD8
1 changed files with 7 additions and 0 deletions

View File

@ -1565,6 +1565,13 @@ fn psk_ciphers() {
let stream = TcpStream::connect(("127.0.0.1", port)).unwrap();
let mut ctx = SslContext::builder(SslMethod::tls()).unwrap();
// TLS 1.3 has no DH suites, and openssl isn't happy if the max version has no suites :(
#[cfg(ossl111)]
{
ctx.set_options(super::SslOptions {
bits: ::ffi::SSL_OP_NO_TLSv1_3,
});
}
ctx.set_cipher_list(CIPHER).unwrap();
ctx.set_psk_client_callback(move |_, _, identity, psk| {
identity[..CLIENT_IDENT.len()].copy_from_slice(&CLIENT_IDENT);