Constant openssl::ssl::SSL_OP_NO_SSL_MASK []

pub const SSL_OP_NO_SSL_MASK: SslOption = SslOption{bits: ffi::SSL_OP_NO_SSL_MASK,}

Disables the use of all (D)TLS protocol versions.

This can be used as a mask when whitelisting protocol versions.

Requires the v102 or v110 features and OpenSSL 1.0.2 or OpenSSL 1.1.0.

Examples

Only support TLSv1.2:

use openssl::ssl::{SSL_OP_NO_SSL_MASK, SSL_OP_NO_TLSV1_2};

let options = SSL_OP_NO_SSL_MASK & !SSL_OP_NO_TLSV1_2;