Lines Matching defs:version
199 /// Disables version rollback attach detection.
261 /// Requires OpenSSL 1.1.1 or newer. This is on by default in 1.1.1, but a future version
323 /// attempted to downgrade the protocol version of the session.
625 /// An SSL/TLS protocol version.
1132 /// Sets the minimum supported protocol version.
1134 /// A value of `None` will enable protocol versions down to the lowest version supported by
1140 pub fn set_min_proto_version(&mut self, version: Option<SslVersion>) -> Result<(), ErrorStack> {
1144 version.map_or(0, |v| v.0 as _),
1150 /// Sets the maximum supported protocol version.
1152 /// A value of `None` will enable protocol versions up to the highest version supported by
1158 pub fn set_max_proto_version(&mut self, version: Option<SslVersion>) -> Result<(), ErrorStack> {
1162 version.map_or(0, |v| v.0 as _),
1168 /// Gets the minimum supported protocol version.
1170 /// A value of `None` indicates that all versions down to the lowest version supported by
1187 /// Gets the maximum supported protocol version.
1189 /// A value of `None` indicates that all versions up to the highest version supported by
1996 /// Returns the SSL/TLS protocol version that first defined the cipher.
1998 pub fn version(&self) -> &'static str {
1999 let version = unsafe {
2004 str::from_utf8(version.to_bytes()).unwrap()
2168 /// Returns the session's TLS protocol version.
2175 let version = ffi::SSL_SESSION_get_protocol_version(self.as_ptr());
2176 SslVersion(version)
2568 pub fn version(&self) -> &str {
2572 /// Returns the protocol version of the session.
2585 /// Returns a string describing the protocol version of the session.
2588 let version = unsafe {
2593 str::from_utf8(version.to_bytes()).unwrap()
3028 /// Returns the legacy version field of the client's hello message.
3037 let version = ffi::SSL_client_hello_get0_legacy_version(self.as_ptr());
3038 if version == 0 {
3041 Some(SslVersion(version as c_int))
3287 /// Sets the minimum supported protocol version.
3289 /// A value of `None` will enable protocol versions down to the lowest version supported by
3295 pub fn set_min_proto_version(&mut self, version: Option<SslVersion>) -> Result<(), ErrorStack> {
3299 version.map_or(0, |v| v.0 as _),
3305 /// Sets the maximum supported protocol version.
3307 /// A value of `None` will enable protocol versions up to the highest version supported by
3313 pub fn set_max_proto_version(&mut self, version: Option<SslVersion>) -> Result<(), ErrorStack> {
3317 version.map_or(0, |v| v.0 as _),